package com.freesky.common.core.domain.entity;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.freesky.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 扫码渠道
 */
@Data
public class TScanChannel extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long channelId;

    private String channelName;
    private String outletNo;
    private String pid;
    private String pids;
    private String area;

    private String totalScore;

    private String usedScore;

    private String channelType;

    /** 父部门名称 */
    private String parentName;

    /** 显示顺序 */
    private Integer orderNum;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 子部门 */
    private List<TScanChannel> children = new ArrayList<TScanChannel>();

}
